package peersim.EP2300.tasks;

import peersim.core.Node;

public class Message{
	public static final int UPDATE = 1;
	public static final int NEW = 0;
	public static final int FAIL = -1;
	public static final int LOCALVAR = 2;
	public static final int TREE = 4;
	public int tag;
	public Node src;
	public UpdateVector update; 
	public int children;
	
	Message(int tag, Node src){
		this.tag = tag;
		this.src = src;
	}	
	
	Message(int tag, Node src, UpdateVector updateVector){
		this.tag = tag;
		this.src = src;
		this.update = updateVector;
	}
	
	Message(int tag, Node src, int children){
		this.tag = tag;
		this.src = src;
		this.children = children;
	}
	
}